import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'newnote',
    loadChildren: () => import('./newnote/newnote.module').then( m => m.NewnotePageModule)
  },
  {
    path: 'updatenote',
    loadChildren: () => import('./updatenote/updatenote.module').then( m => m.UpdatenotePageModule)
  },
  {
    path: 'account',
    loadChildren: () => import('./user/account/account.module').then( m => m.AccountPageModule)
  },
  {
    path: 'setting',
    loadChildren: () => import('./user/setting/setting.module').then( m => m.SettingPageModule)
  },
  {
    path: 'about',
    loadChildren: () => import('./user/about/about.module').then( m => m.AboutPageModule)
  },
  {
    path: 'question',
    loadChildren: () => import('./user/question/question.module').then( m => m.QuestionPageModule)
  },
  {
    path: 'login',
    loadChildren: () => import('./user/login/login.module').then( m => m.LoginPageModule)
  }
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
